/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.student_award.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 学生获奖Entity
 * @author hang
 * @version 2017-01-15
 */
public class TbStudentAward extends DataEntity<TbStudentAward> {
	
	private static final long serialVersionUID = 1L;
	private String awardName;		// 奖励名称
	private String awardGrade;		// 奖励等级
	private String awardSourse;		// 奖励来源
	private String doenPerson;		// 完成人
	private String year;		// 获奖年度
	private String certificateNum;		// 证书编号
	private String remark;		// 备注
	private String material;		// 证明材料
	private Date createTime;		// 创建时间
	private Date updateTime;		// 更新时间
	
	public TbStudentAward() {
		super();
	}

	public TbStudentAward(String id){
		super(id);
	}

	@Length(min=0, max=50, message="奖励名称长度必须介于 0 和 50 之间")
	public String getAwardName() {
		return awardName;
	}

	public void setAwardName(String awardName) {
		this.awardName = awardName;
	}
	
	@Length(min=0, max=20, message="奖励等级长度必须介于 0 和 20 之间")
	public String getAwardGrade() {
		return awardGrade;
	}

	public void setAwardGrade(String awardGrade) {
		this.awardGrade = awardGrade;
	}
	
	@Length(min=0, max=50, message="奖励来源长度必须介于 0 和 50 之间")
	public String getAwardSourse() {
		return awardSourse;
	}

	public void setAwardSourse(String awardSourse) {
		this.awardSourse = awardSourse;
	}
	
	@Length(min=0, max=50, message="完成人长度必须介于 0 和 50 之间")
	public String getDoenPerson() {
		return doenPerson;
	}

	public void setDoenPerson(String doenPerson) {
		this.doenPerson = doenPerson;
	}
	
	@Length(min=0, max=50, message="获奖年度长度必须介于 0 和 50 之间")
	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}
	
	@Length(min=0, max=100, message="证书编号长度必须介于 0 和 100 之间")
	public String getCertificateNum() {
		return certificateNum;
	}

	public void setCertificateNum(String certificateNum) {
		this.certificateNum = certificateNum;
	}
	
	@Length(min=0, max=100, message="备注长度必须介于 0 和 100 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Length(min=0, max=200, message="证明材料长度必须介于 0 和 200 之间")
	public String getMaterial() {
		return material;
	}

	public void setMaterial(String material) {
		this.material = material;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}